package org.tomac.io;

import java.io.IOException;
import java.nio.ByteBuffer;

import org.tomac.io.fix.IConnectionListenener;

public interface IConnection {
	
	public void connect() throws IOException; // corresponds to accept in the server case
	
	public void write(ByteBuffer buf) throws IOException;
	
	public void close();

	void addConnectionListener(IConnectionListenener onRead);
}
